package com.traffic.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@TableName("ots_score")
public class Score {

    @TableId(value = "id",type = IdType.AUTO)
    private int id;

    private Double x1;
    private Double x2;
    private Double x3;
    private Double x4;
    private Double x5;
    private Double x6;
    private Double x7;
    private Double x8;

    private Double x9;
    private Double x10;
    private Double x11;
    private Double x12;
    private Double x13;
    private Double x14;
    private Double x15;
    private Double x16;

    private Long userId;

    private Double score;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createtime;


}
